/**
 * 路由的配置
 */
export default [
  {
    path: '/',
    component: '@/layouts/BasicLayout',
    routes: [
      { path: '/', redirect: '/codeDiff' },

      // hooks 例子
      { path: '/hooks', component: '@/pages/hooks/index7.js' },

      // StyledComponents 例子
      { path: '/styledComponents', component: '@/pages/StyledComponents' },

      // rxjs 例子
      { path: '/rxjs', component: '@/pages/Rxjs' },

      // sentry 例子
      { path: '/sentry', component: '@/pages/Sentry' },

      // ep
      { path: '/ep', component: '@/pages/Ep' },

      // 测试页面
      { path: '/testPage', component: '@/pages/TestPage' },

      // 导出表格
      { path: '/exportExcel', component: '@/pages/ExportExcel' },

      // 代码比较
      { path: '/codeDiff', component: '@/pages/CodeDiff' },

      // dag图
      { path: '/dagTest', component: '@/pages/DagTest' },

      // 格式化代码
      { path: '/Prettier', component: '@/pages/Prettier' },

      // CDN jsdelivr
      { path: '/CDNjsdelivr', component: '@/pages/CDNjsdelivr' },

      // 电厂1
      { path: '/page1', component: '@/pages/electricity/Page1' },

      // 电厂2
      { path: '/page2', component: '@/pages/electricity/Page2' },

      // 接口监控
      { path: '/page3', component: '@/pages/electricity/Page3' },

      // 数据治理
      { path: '/page4', component: '@/pages/electricity/Page4' },

      // 首页
      { path: '/page5', component: '@/pages/electricity/Page5' },

      // 首页
      { path: '/page6', component: '@/pages/electricity/Page6' },

      // 切换主题
      { path: '/themeChange', component: '@/pages/ThemeChange' },

      // 流程图设置
      { path: '/BpmnTest', component: '@/pages/BpmnTest' },

      // 画布
      { path: '/Konva', component: '@/pages/Konva' },

      // 画布
      { path: '/emotion', component: '@/pages/Emotion' },

      // js添加class
      {
        path: '/StyledComponentsTest',
        component: '@/pages/StyledComponentsTest',
      },

      // scoket
      { path: '/Scoket', component: '@/pages/Scoket' },

      // scoket
      { path: '/asyncPage', component: '@/pages/AsyncPage/dynamic' },

      // 加密算法
      { path: '/encryptionData', component: '@/pages/EncryptionData' },

      // 监听本地存储
      { path: '/onStore', component: '@/pages/OnStore' },

      // 监听本地存储
      { path: '/onStore2', component: '@/pages/OnStore/index2' },

      { path: '/componentsScaffold', component: '@/pages/ComponentsScaffold' },

      // pdf预览
      { path: '/pdf', component: '@/pages/PDF' },

      { path: '/test', component: '@/pages/Test' },

      // loadjs （远程加载js）
      { path: '/loadjs', component: '@/pages/Loadjs' },

      // 在线表格
      { path: '/luckysheet', component: '@/pages/Luckysheet' },

      // 窗口 和 窗口交互
      { path: '/postMessageTest1', component: '@/pages/PostMessageTest1' },
      // 窗口 和 窗口交互
      { path: '/postMessageTest2', component: '@/pages/PostMessageTest2' },

      /** 帅的----------------------------------------- */
      //代码封装
      {
        path: '/shuaiEncapsulation',
        component: '@/pages/BiShuai/ShuaiEncapsulation',
      },
      { path: '/treeDemo', component: '@/pages/BiShuai/TreeDemo' },
      { path: '/tableDemo', component: '@/pages/BiShuai/TableDemo' },
      {
        path: '/sensitivityAnalysis',
        component: '@/pages/BiShuai/SensitivityAnalysis',
      },

      // Fabricjs 画布
      { path: '/fabric', component: '@/pages/Fabric' },

      // docx，pdf 在线预览
      { path: '/filePreview', component: '@/pages/FilePreview' },

      // 下载文件
      { path: '/fileSaver', component: '@/pages/FileSaver' },

      // iframe 引入本地部署的其他项目 （当你想要在当前项目在部署一个或者多个项目去使用的时候）
      { path: '/iframeProject', component: '@/pages/IframeProject' },

      // auth0 单点登录接入
      { path: '/auth0', component: '@/pages/Auth0' },
      // auth0 登录后回调页面
      { path: '/auth0Back', component: '@/pages/Auth0Back' },

      // OKTA 单点登录接入
      { path: '/okta', component: '@/pages/Okta' },
      // OKTA 登录后回调页面
      { path: '/oktaBack', component: '@/pages/OktaBack' },

      { path: '/RenderTable', component: '@/pages/RenderTable' },

      /* ----------------- 源码相关 ---------------------- */
      // react-redux 源码解析
      { path: '/reactRedux', component: '@/pages/ReactRedux' },

      // useState原理
      { path: '/useState', component: '@/pages/UseState' },

      // useEffect原理
      { path: '/useEffect', component: '@/pages/UseEffect' },


      // 加密 和 非对称加密
      { path: '/encryption', component: '@/pages/Encryption' },
    ],
  },
];
